package cn.sh.cares.tools.srcgen.freemarker;

import cn.sh.cares.tools.srcgen.Generator;
import cn.sh.cares.tools.srcgen.db.TableDefinition;
import cn.sh.cares.tools.srcgen.util.ResourceManager;

public class IBatisSQLMapGenerator extends FreeMarkerGenerator implements Generator {
	
	public String generateFileName(TableDefinition tableDefinition) {
		return tableDefinition.getTableName() + ".xml";
	}
	
	public String getOutputDirectory() {
		return ResourceManager.getMessage("outputdir.SQLMap");
	}
	
	public String getTemplateFileName() {
		return ResourceManager.getMessage("template.SQLMap");
	}
}
